package com.example.ibsp_demo.mapper.message;

import com.example.ibsp_demo.pojo.entity.message.CommentMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMessageMapper {

    // 插入评论消息
    int insert(CommentMessage commentMessage);

    List<CommentMessage> selectCommentsByUid(@Param("userId") int userId);
    // 标记评论消息为已读
    int markAsRead(int commentId);
}
